home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
051-075
/
disk_065
/
pascaltoc
/
testfile.c
< prev
next >
Wrap
Text File
|
1992-05-06
|
1KB
|
20 lines
/* sort -- external sort of text lines, from Software Tools in Pascal, pg 121 */
void sort()
/* CONST */
MAXCHARS == 10000; /* maximum # of text characters */
MAXLINES == 300; /* maximum # of lines */
MERGEORDER == 5;
typedef 1/***# Expected ; ***/ charpos;/***# Expected = ***/typedef charbuf/***# Expected ; ***/ MAXCHARS; /***# Expected type identifier ***/ /***# Expected = ***/typedef 1/***# Expected ; ***/ ;/***# Expected = ***/typedef /***# Expected type ***//***# Expected ; ***/ MAXCHARS; /***# Expected = ***/typedef posbuf/***# Expected ; ***/ character; /***# Expected type identifier ***/ /***# Expected = ***/typedef 1/***# Expected ; ***/ ;/***# Expected = ***/typedef /***# Expected type ***//***# Expected ; ***/ MAXLINES; /***# Expected = ***/typedef pos/***# Expected ; ***/ charpos; /***# Expected = ***/typedef MAXLINES 0;
typedef filedesc fdbuf[MERGEORDER+1];
charbuf linebuf ;
posbuf linepos ;
pos nlines ;
fdbuf infile;
filedesc outfile ;
int high, low, lim;
boolean done ;
char/***# Expected [ or ( after STRING ***//***# Expected string length ***//***# Expected ] or ) after STRING[ ***/
/***# EOF ***/